package com.xxx.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author blijojo
 * @date 2021/5/30
 */
@RestController
@Slf4j
public class ProductController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/product/test1")
    public String test1(Integer id) {
        log.info("调用product.test1服务");
        return "product.test1 ===> id:" + id + ", port:" + port;
    }
}
